package cn.huapu.power.energy.service.impl;

import cn.huapu.power.energy.bean.PeaTransformerscore;
import cn.huapu.power.energy.bean.bo.DateParameterBo;
import cn.huapu.power.energy.mapper.PeaTransformerscoreMapper;
import cn.huapu.power.energy.service.PeaTransformerscoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 测试用户权限服务实现类
 * @author autogen
 *
 */
@Service
public class PeaTransformerscoreServiceImpl extends BaseServiceImpl<PeaTransformerscoreMapper, PeaTransformerscore,Integer> implements PeaTransformerscoreService {

    @Autowired
    private PeaTransformerscoreMapper pMapper;

    @Override
    @Transactional(readOnly = true)
    public List<PeaTransformerscore> getEconomicsScoreDy(String year, String month, int id) {
        List<PeaTransformerscore> list1 = pMapper.getEconomicsScoreDy(year,month,id);
        return list1;
    }

    @Override
    @Transactional(readOnly = true)
    public List<PeaTransformerscore> getEconomicsScoreSy(String year1, String month1, int id) {
        List<PeaTransformerscore> list1 = pMapper.getEconomicsScoreSy(year1,month1,id);
        return list1;
    }

    @Override
    @Transactional(readOnly = true)
    public List<PeaTransformerscore> getTraByqPm(DateParameterBo da) {
        List<PeaTransformerscore> list = pMapper.getTraByqPm(da);
        return list;
    }

	@Override
	@Transactional(readOnly = true)
	public Integer getMaxYear(Integer clientId) {		
		return pMapper.getMaxYear(clientId);
	}

	@Override
	@Transactional(readOnly = true)
	public Integer getMaxMonth(Integer year, Integer clientId) {		
		return pMapper.getMaxMonth(year, clientId);
	}
}
